import type { GithubElements } from '../../../../../../../types/constants/personalization/github'
import { BaseService } from '../../../../../../../lib/abstract/base_service'
import { PAGE_ELEMENTS, SUPPORTED_PLATFORMS } from '../../../../../../../types/constants'

export class GithubCommonPage extends BaseService {
  readonly id: string = 'github_common_page'
  readonly name = 'githubCommonPage'
  elements: GithubElements = PAGE_ELEMENTS[SUPPORTED_PLATFORMS.GITHUB]
  private static instance: GithubCommonPage

  /**
   * 获取单例实例
   */
  public static getInstance(): GithubCommonPage {
    if (!GithubCommonPage.instance) {
      GithubCommonPage.instance = new GithubCommonPage()
    }
    return GithubCommonPage.instance
  }

  init(): void {}

  getMainStyles(): string {
    return ``
  }
}
